import myaxios from "@/http/MyAxios";
import BaseUrl from "@/http/BaseUrl";
const JKTURL=BaseUrl.JKTURL

const CoachApi={
    /**
     *  查询所有教练
     * @param {Object} params 请求参数对象。例如： {page:1, pagesize:10}
     * 
     * */ 
    queryAllCoach(params){
        let url=JKTURL+'/coach/list'
        return myaxios.get(url, params)
    },
    /**
     *  查询教练 评分排序
     * @param {Object} params 请求参数对象。例如： {page:1, pagesize:10}
     * 
     * */ 
    CoachScoreList(params){
        let url=JKTURL+'/coach/score'
        return myaxios.get(url,params)
    },
    
}


export default CoachApi;